
var AttendanceApply_bCancel = false;

function validateAttendanceApply(form) {
  if (AttendanceApply_bCancel)
    return true;
  else 
    var formValidationResult;
  formValidationResult = validateRequired(form) & validateMaxLength(form); 
  return (formValidationResult == 1);
}

function AttendanceApply_required() {
  this.a0 = new Array("startTime", "起始时间不能为空", new Function ("varName", " return this[varName];"));
  this.a1 = new Array("endTime", "截止时间不能为空", new Function ("varName", " return this[varName];"));
  this.a2 = new Array("destination", "目的地点不能为空", new Function ("varName", " return this[varName];"));
  this.a3 = new Array("reason", "事由不能为空", new Function ("varName", "this.maxlength='500';  return this[varName];"));
  this.a4 = new Array("content", "说明不能为空", new Function ("varName", "this.maxlength='500';  return this[varName];"));
  this.a5 = new Array("holidayType", "假期分类不能为空", new Function ("varName", " return this[varName];"));
  this.a6 = new Array("cash", "预支现金不能为空", new Function ("varName", " return this[varName];"));
  this.a7 = new Array("checker", "确认人员不能为空", new Function ("varName", " return this[varName];"));
  this.a8 = new Array("financeChecker", "财务确认人员不能为空", new Function ("varName", " return this[varName];"));
  this.a9 = new Array("confirmer", "审核人员不能为空", new Function ("varName", " return this[varName];"));
}

function AttendanceApply_maxlength() {
  this.a0 = new Array("reason", "事由长度必须小于500", new Function ("varName", "this.maxlength='500';  return this[varName];"));
  this.a1 = new Array("content", "说明长度必须小于500", new Function ("varName", "this.maxlength='500';  return this[varName];"));
}


